<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>新闻</title>

    <link rel="stylesheet" type="text/css" href="./jquery-easyui-1.6.6/themes/default/easyui.css">
    <link rel="stylesheet" type="text/css" href="./jquery-easyui-1.6.6/themes/icon.css">
    <script type="text/javascript" src="./jquery-easyui-1.6.6/jquery.min.js"></script>
    <script type="text/javascript" src="./jquery-easyui-1.6.6/jquery.easyui.min.js"></script>
    <style>
        .menu {
            border: none!important;
            text-align: center;
            margin: 0 auto;
        }
        
        .menu li {
            height: 30px;
            text-align: center;
        }
        
        .menu a {
            text-decoration: none;
        }
    </style>

</head>

<body>
    <div class="easyui-layout" data-options="fit:true">
        <div data-options="region:'north'" style="height:50px">
            <div class="easyui-panel" style="padding:5px;">
                <a href="#" class="easyui-linkbutton" data-options="plain:true">首页</a>
                <a href="#" class="easyui-menubutton" data-options="menu:'#mm1',iconCls:'icon-edit'">编辑</a>
                <a href="#" class="easyui-menubutton" data-options="menu:'#mm2',iconCls:'icon-help'">帮助</a>
                <a href="#" class="easyui-menubutton" data-options="menu:'#mm3'">关于</a>
            </div>
            <div id="mm1" style="width:150px;">
                <div data-options="iconCls:'icon-undo'">Undo</div>
                <div data-options="iconCls:'icon-redo'">Redo</div>
                <div class="menu-sep"></div>
                <div>Cut</div>
                <div>Copy</div>
                <div>Paste</div>
                <div class="menu-sep"></div>
                <div>
                    <span>Toolbar</span>
                    <div>
                        <div>Address</div>
                        <div>Link</div>
                        <div>Navigation Toolbar</div>
                        <div>Bookmark Toolbar</div>
                        <div class="menu-sep"></div>
                        <div>New Toolbar...</div>
                    </div>
                </div>
                <div data-options="iconCls:'icon-remove'">Delete</div>
                <div>Select All</div>
            </div>
            <div id="mm2" style="width:100px;">
                <div>Help</div>
                <div>Update</div>
                <div>About</div>
            </div>
            <div id="mm3" class="menu-content" style="background:#f0f0f0;padding:10px;text-align:left">
                <img src="http://www.jeasyui.com/images/logo1.png" style="width:150px;height:50px">
                <p style="font-size:14px;color:#444;">Try jQuery EasyUI to build your modern, interactive, javascript applications.</p>
            </div>
        </div>
        <div data-options="region:'south',split:true" style="height:50px;"></div>
        <div data-options="region:'east',split:true" title="East" style="width:100px;"></div>
        <div data-options="region:'west',split:true" title="West" style="width:200px;">
            <div class="easyui-accordion" data-options="fit:true">
                <div title="新闻管理" data-options="iconCls:'icon-ok'" style="overflow:auto;padding:10px;">

                    <ul class="menu">
                        <li><a href="javascript:void(0)" link="./components/release.html">新闻发布</a></li>
                        <li><a href="javascript:void(0)" link="./components/cate.html">新闻类别</a></li>
                        <li><a href="javascript:void(0)" link="./components/new.html">新闻管理</a></li>
                        <!-- <li><a href="javascript:void(0)" link="./components/product.html">评论管理</a></li> -->
                    </ul>


                </div>
                <div title="帮助" data-options="iconCls:'icon-help'" style="padding:10px;">
                    <p>The accordion allows you to provide multiple panels and display one or more at a time. Each panel has built-in support for expanding and collapsing. Clicking on a panel header to expand or collapse that panel body. The panel content
                        can be loaded via ajax by specifying a 'href' property. Users can define a panel to be selected. If it is not specified, then the first panel is taken by default.</p>
                </div>
                <div title="关于" data-options="iconCls:'icon-search'" style="padding:10px 0;">
                    <ul class="easyui-tree">
                        <li>
                            <span>Foods</span>
                            <ul>
                                <li>
                                    <span>Fruits</span>
                                    <ul>
                                        <li>apple</li>
                                        <li>orange</li>
                                    </ul>
                                </li>
                                <li>
                                    <span>Vegetables</span>
                                    <ul>
                                        <li>tomato</li>
                                        <li>carrot</li>
                                        <li>cabbage</li>
                                        <li>potato</li>
                                        <li>lettuce</li>
                                    </ul>
                                </li>
                            </ul>
                        </li>
                    </ul>
                </div>
            </div>
        </div>
        <div data-options="region:'center',title:'Main Title',iconCls:'icon-ok'">
            <div id="tt" class="easyui-tabs" data-options="fit:true"></div>
        </div>
    </div>
    <script>
        var globalUrl = 'http://localhost:3000/';
        $(".menu li a").click(function() {
            var title = $(this).text();
            var link = $(this).attr('link');
            $('#tt').tabs('add', {
                title: title,
                fit: true,
                content: '<iframe scrolling="auto" frameborder="0" src="' + link + '" width="100%" height="100%"></iframe>',
                closable: true
            });

        })
    </script>

</body>

</html>